package com.crb.crm.manage.message.token;


import java.util.Map;

/**
 * 變量替換工具類
 */
public class TokenHandlerTools {
    public static String parse(String text, Map<String,String> properties ) {
        VariableTokenHandler tokenHandler = new VariableTokenHandler(properties);
        GenericTokenParser parser = new GenericTokenParser("${", "}", tokenHandler);
        return parser.parse(text);
    }
}